home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’96 / Sessions ’96 / ODF- Easy OpenDoc / MacHack(2) / Sources / MacHackView.h < prev    next >
Encoding:
Text File  |  1996-06-18  |  1.8 KB  |  65 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //
  3. //    File:                MacHackView.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef MACHACKVIEW_H
  11. #define MACHACKVIEW_H
  12.  
  13. // ----- Part Layer -----
  14.  
  15. #ifndef FWSVIEW_H
  16. #include "FWSView.h"
  17. #endif
  18.  
  19. //========================================================================================
  20. // Forward Declaration
  21. //========================================================================================
  22.  
  23. class CMacHackPart;
  24. class CMacHackFrame;
  25.  
  26. //========================================================================================
  27. // Class CMacHackView
  28. //========================================================================================
  29.  
  30. class CMacHackView : public FW_CSuperView
  31. {
  32. public:
  33.     FW_DECLARE_AUTO(CMacHackView)
  34.     FW_DECLARE_CLASS
  35.  
  36. //----------------------------------------------------------------------------------------
  37. // Initialization/destruction
  38. //
  39. public:        
  40.     CMacHackView(Environment* ev);
  41.     virtual ~ CMacHackView();
  42.         
  43. //----------------------------------------------------------------------------------------
  44. // Inherited API
  45. //
  46. public:        
  47.     // ----- Drawing -----
  48.     virtual void             Draw(Environment* ev, ODFacet* odFacet, ODShape* invalidShape);
  49.  
  50.     // ----- Post Creation -----
  51.     virtual void            PostCreateViewFromStream(Environment* ev);
  52.  
  53.     // ----- Archiving -----
  54.     static void*            Create(FW_CReadableStream& stream, FW_ClassTypeConstant type);
  55.     static void                Destroy(void* object, FW_ClassTypeConstant type);
  56.  
  57. //----------------------------------------------------------------------------------------
  58. // Data Members
  59. //
  60. private:    
  61.     CMacHackPart*        fMacHackPart;
  62. };
  63.  
  64. #endif
  65.